package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@Builder
@ApiModel("添加用户相关参数")
public class UserAddDto {

    @NotBlank(message = "账号不能为空")
    @ApiModelProperty("账号")
    private String account;
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("职位名称")
    private String position;

    @ApiModelProperty("组别")
    private String groupId;

    @ApiModelProperty("角色")
    private List<String> roleIds;

}
